﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace VisualExamEngine
{
    class clsExam
    {
        public clsExam()
        {
            
        }

        [DescriptionAttribute("The title of the exam.")]
        [DisplayName("Exam Title")]
        public String ExamTitle { get; set; }

        [DescriptionAttribute("An optional description to show when starting a new exam.")]
        public String Description { get; set; }

        public int SubExams = 1;
        
        [DescriptionAttribute("The list of sections.")]
        [Editor(@"System.Windows.Forms.Design.StringCollectionEditor," +
            "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
            typeof(System.Drawing.Design.UITypeEditor))]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        [TypeConverter(typeof(clsStringListTypeConverter))]
        public List<string> Sections
        {
            get
            {
                if (clsGlobals.Sections == null)
                    clsGlobals.Sections = new List<String>();
                return clsGlobals.Sections;
            }
        }

        public List<clsQuestion> Questions = new List<clsQuestion> { };

        /// <summary>
        /// DateTime: 5/4/15 10:41 PM
        /// Author: Mike Hartwig
        /// Purpose: Class Constructor
        /// </summary>
        public clsExam(string Title) 
        {
            ExamTitle = Title;
        }

    }
}
